package com.ty.day4;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/17 15:02
 */
public interface A {
    void a();
}

interface B {
    void b();
}

abstract class C {
    abstract void c();

    void c1() {
        System.out.println("666");
    }
}

class D extends C implements A, B {
    @Override
    public void a() {

    }

    @Override
    public void b() {

    }

    @Override
    public void c() {

    }
}

interface E extends A, B {

}

class F extends C implements E {

    @Override
    public void a() {

    }

    @Override
    public void b() {

    }

    @Override
    void c() {

    }
}

class Test1 {
    public static void main(String[] args) {
        D d = new D();
        F f = new F();
        A a;
        B b;
        C c;
        E e;
        a = d;
        a = f;
        b = d;
        b = f;
        c = d;
        c = f;
//        e = d;
        e = f;
    }
}